home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 July: System Software / Dev.CD Jul 94.toast / SSW 7.1.1 (Pro) / Czech 7.1.1 Installer / AppleScript™ Setup / Release Notes / Script Application Notes < prev    next >
Unknown  |  1993-04-14  |  12.5 KB  |  [QUIL/quil]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default


id metadata
keyvalue
macFileType[QUIL]
macFileCreator[quil]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 00 00 29 cc 53 63 | 72 69 70 74 20 41 70 70 |....).Sc|ript App|
|00000010| 6c 69 63 61 74 69 6f 6e | 73 20 31 2e 30 20 52 65 |lication|s 1.0 Re|
|00000020| 6c 65 61 73 65 20 4e 6f | 74 65 73 0d 0d 49 6e 74 |lease No|tes..Int|
|00000030| 72 6f 64 75 63 74 69 6f | 6e 0d 0d 53 63 72 69 70 |roductio|n..Scrip|
|00000040| 74 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 68 |t applic|ations h|
|00000050| 61 76 65 20 61 20 6e 75 | 6d 62 65 72 20 6f 66 20 |ave a nu|mber of |
|00000060| 70 6f 77 65 72 66 75 6c | 20 66 65 61 74 75 72 65 |powerful| feature|
|00000070| 73 20 74 68 61 74 20 65 | 69 74 68 65 72 20 66 65 |s that e|ither fe|
|00000080| 6c 6c 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 63 |ll betwe|en the c|
|00000090| 72 61 63 6b 73 20 6f 66 | 20 74 68 65 20 6d 61 6e |racks of| the man|
|000000a0| 75 61 6c 73 2c 20 6f 72 | 20 77 65 72 65 20 61 64 |uals, or| were ad|
|000000b0| 64 65 64 20 74 6f 6f 20 | 6c 61 74 65 20 74 6f 20 |ded too |late to |
|000000c0| 64 6f 63 75 6d 65 6e 74 | 2e 20 54 68 69 73 20 66 |document|. This f|
|000000d0| 69 6c 65 20 64 65 73 63 | 72 69 62 65 73 3a 0d 0d |ile desc|ribes:..|
|000000e0| a5 09 57 68 61 74 20 72 | 75 6e 20 61 6e 64 20 6f |..What r|un and o|
|000000f0| 70 65 6e 20 68 61 6e 64 | 6c 65 72 73 20 64 6f 2c |pen hand|lers do,|
|00000100| 20 61 6e 64 20 68 6f 77 | 20 74 6f 20 6d 61 6b 65 | and how| to make|
|00000110| 20 d2 64 72 6f 70 70 61 | 62 6c 65 d3 20 61 70 70 | .droppa|ble. app|
|00000120| 6c 69 63 61 74 69 6f 6e | 73 0d a5 09 53 74 61 79 |lication|s...Stay|
|00000130| 2d 6f 70 65 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |-open ap|plicatio|
|00000140| 6e 73 0d a5 09 55 73 69 | 6e 67 20 71 75 69 74 20 |ns...Usi|ng quit |
|00000150| 68 61 6e 64 6c 65 72 73 | 0d a5 09 53 63 72 69 70 |handlers|...Scrip|
|00000160| 74 20 73 65 72 76 65 72 | 73 0d a5 09 50 65 72 69 |t server|s...Peri|
|00000170| 6f 64 69 63 20 61 63 74 | 69 6f 6e 73 20 61 6e 64 |odic act|ions and|
|00000180| 20 61 67 65 6e 74 73 20 | 28 73 6f 72 72 79 2c 20 | agents |(sorry, |
|00000190| 6e 6f 20 62 6f 77 2d 74 | 69 65 73 20 79 65 74 29 |no bow-t|ies yet)|
|000001a0| 0d a5 09 48 6f 77 20 74 | 6f 20 63 61 6c 6c 20 61 |...How t|o call a|
|000001b0| 20 73 63 72 69 70 74 20 | 61 70 70 6c 69 63 61 74 | script |applicat|
|000001c0| 69 6f 6e 20 66 72 6f 6d | 20 61 6e 6f 74 68 65 72 |ion from| another|
|000001d0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 0d 0d 54 68 | applica|tion..Th|
|000001e0| 65 20 d2 53 61 6d 70 6c | 65 20 53 63 72 69 70 74 |e .Sampl|e Script|
|000001f0| 73 d3 20 66 6f 6c 64 65 | 72 20 6f 6e 20 74 68 69 |s. folde|r on thi|
|00000200| 73 20 43 44 20 69 6e 63 | 6c 75 64 65 73 20 73 63 |s CD inc|ludes sc|
|00000210| 72 69 70 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ript app|lication|
|00000220| 73 20 74 68 61 74 20 64 | 65 6d 6f 6e 73 74 72 61 |s that d|emonstra|
|00000230| 74 65 20 74 68 65 73 65 | 20 66 65 61 74 75 72 65 |te these| feature|
|00000240| 73 2e 0d 0d 54 68 65 6f | 72 79 20 6f 66 20 4f 70 |s...Theo|ry of Op|
|00000250| 65 72 61 74 69 6f 6e 0d | 0d 41 6c 6c 20 41 70 70 |eration.|.All App|
|00000260| 6c 65 a8 20 65 76 65 6e | 74 73 20 73 65 6e 74 20 |le. even|ts sent |
|00000270| 74 6f 20 61 20 73 63 72 | 69 70 74 20 61 70 70 6c |to a scr|ipt appl|
|00000280| 69 63 61 74 69 6f 6e 20 | 61 72 65 20 66 75 6e 6e |ication |are funn|
|00000290| 65 6c 65 64 20 74 68 72 | 6f 75 67 68 20 69 74 73 |eled thr|ough its|
|000002a0| 20 73 63 72 69 70 74 2e | 20 45 76 65 72 79 20 d2 | script.| Every .|
|000002b0| 6f 6e 20 c9 d3 20 68 61 | 6e 64 6c 65 72 20 69 6e |on .. ha|ndler in|
|000002c0| 20 74 68 65 20 73 63 72 | 69 70 74 20 69 6e 74 65 | the scr|ipt inte|
|000002d0| 72 63 65 70 74 73 20 61 | 20 70 61 72 74 69 63 75 |rcepts a| particu|
|000002e0| 6c 61 72 20 41 70 70 6c | 65 20 65 76 65 6e 74 20 |lar Appl|e event |
|000002f0| 61 6e 64 20 69 74 73 20 | 70 61 72 61 6d 65 74 65 |and its |paramete|
|00000300| 72 73 2c 20 61 6e 64 20 | 63 61 6e 20 64 6f 20 61 |rs, and |can do a|
|00000310| 6e 79 74 68 69 6e 67 20 | 69 74 20 77 61 6e 74 73 |nything |it wants|
|00000320| 20 74 6f 20 69 6e 20 72 | 65 73 70 6f 6e 73 65 20 | to in r|esponse |
|00000330| 74 6f 20 74 68 61 74 20 | 65 76 65 6e 74 2e 0d 0d |to that |event...|
|00000340| 54 68 65 20 6d 6f 73 74 | 20 62 61 73 69 63 20 75 |The most| basic u|
|00000350| 73 65 20 6f 66 20 74 68 | 69 73 20 69 73 20 74 6f |se of th|is is to|
|00000360| 20 69 6e 74 65 72 63 65 | 70 74 20 74 68 65 20 65 | interce|pt the e|
|00000370| 76 65 6e 74 73 20 74 68 | 61 74 20 74 68 65 20 46 |vents th|at the F|
|00000380| 69 6e 64 65 72 a8 20 73 | 65 6e 64 73 20 74 6f 20 |inder. s|ends to |
|00000390| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |an appli|cation w|
|000003a0| 68 65 6e 20 69 74 d5 73 | 20 6c 61 75 6e 63 68 65 |hen it.s| launche|
|000003b0| 64 2e 20 54 68 65 73 65 | 20 65 76 65 6e 74 73 20 |d. These| events |
|000003c0| 61 72 65 20 d2 72 75 6e | d3 20 61 6e 64 20 d2 6f |are .run|. and .o|
|000003d0| 70 65 6e d3 2e 20 54 68 | 65 79 20 61 72 65 20 64 |pen.. Th|ey are d|
|000003e0| 65 73 63 72 69 62 65 64 | 20 69 6e 20 74 68 65 20 |escribed| in the |
|000003f0| 6e 65 78 74 20 74 77 6f | 20 73 65 63 74 69 6f 6e |next two| section|
|00000400| 73 c9 0d 0d d2 6f 6e 20 | 72 75 6e d3 ca 48 61 6e |s....on |run..Han|
|00000410| 64 6c 65 72 73 0d 0d 54 | 68 65 20 72 75 6e 20 65 |dlers..T|he run e|
|00000420| 76 65 6e 74 20 69 73 20 | 73 65 6e 74 20 74 6f 20 |vent is |sent to |
|00000430| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |an appli|cation w|
|00000440| 68 65 6e 20 69 74 20 69 | 73 20 6c 61 75 6e 63 68 |hen it i|s launch|
|00000450| 65 64 20 77 69 74 68 6f | 75 74 20 61 6e 79 20 69 |ed witho|ut any i|
|00000460| 74 65 6d 73 20 74 6f 20 | 6f 70 65 6e 2e 20 54 68 |tems to |open. Th|
|00000470| 69 73 20 68 61 70 70 65 | 6e 73 20 77 68 65 6e 20 |is happe|ns when |
|00000480| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00000490| 69 73 20 6e 6f 74 20 61 | 6c 72 65 61 64 79 20 72 |is not a|lready r|
|000004a0| 75 6e 6e 69 6e 67 2c 20 | 61 6e 64 3a 0d a5 09 59 |unning, |and:...Y|
|000004b0| 6f 75 20 64 6f 75 62 6c | 65 2d 63 6c 69 63 6b 20 |ou doubl|e-click |
|000004c0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 3b |the appl|ication;|
|000004d0| 0d a5 09 54 68 65 20 61 | 70 70 6c 69 63 61 74 69 |...The a|pplicati|
|000004e0| 6f 6e 20 69 73 20 69 6e | 20 74 68 65 20 41 70 70 |on is in| the App|
|000004f0| 6c 65 20 4d 65 6e 75 20 | 49 74 65 6d 73 20 66 6f |le Menu |Items fo|
|00000500| 6c 64 65 72 2c 20 61 6e | 64 20 79 6f 75 20 63 68 |lder, an|d you ch|
|00000510| 6f 6f 73 65 20 69 74 20 | 66 72 6f 6d 20 74 68 65 |oose it |from the|
|00000520| 20 41 70 70 6c 65 20 6d | 65 6e 75 3b 20 6f 72 0d | Apple m|enu; or.|
|00000530| a5 09 54 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |..The ap|plicatio|
|00000540| 6e 20 69 73 20 69 6e 20 | 74 68 65 20 53 74 61 72 |n is in |the Star|
|00000550| 74 75 70 20 49 74 65 6d | 73 20 66 6f 6c 64 65 72 |tup Item|s folder|
|00000560| 2c 20 61 6e 64 20 79 6f | 75 20 72 65 73 74 61 72 |, and yo|u restar|
|00000570| 74 20 79 6f 75 72 20 4d | 61 63 69 6e 74 6f 73 68 |t your M|acintosh|
|00000580| 2e 0d 28 49 66 20 74 68 | 65 20 61 70 70 6c 69 63 |..(If th|e applic|
|00000590| 61 74 69 6f 6e 20 77 61 | 73 20 61 6c 72 65 61 64 |ation wa|s alread|
|000005a0| 79 20 72 75 6e 6e 69 6e | 67 20 77 68 65 6e 20 6f |y runnin|g when o|
|000005b0| 6e 65 20 6f 66 20 74 68 | 65 73 65 20 61 63 74 69 |ne of th|ese acti|
|000005c0| 6f 6e 73 20 6f 63 63 75 | 72 73 2c 20 74 68 65 20 |ons occu|rs, the |
|000005d0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 69 6c 6c |applicat|ion will|
|000005e0| 20 62 65 20 61 63 74 69 | 76 61 74 65 64 2c 20 62 | be acti|vated, b|
|000005f0| 75 74 20 6e 6f 20 65 76 | 65 6e 74 73 20 77 69 6c |ut no ev|ents wil|
|00000600| 6c 20 62 65 20 73 65 6e | 74 20 74 6f 20 69 74 2e |l be sen|t to it.|
|00000610| 29 0d 0d 49 66 20 74 68 | 65 20 73 63 72 69 70 74 |)..If th|e script|
|00000620| 20 69 6e 20 74 68 65 20 | 73 63 72 69 70 74 20 61 | in the |script a|
|00000630| 70 70 6c 69 63 61 74 69 | 6f 6e 20 68 61 73 20 61 |pplicati|on has a|
|00000640| 6e 20 d2 6f 6e 20 72 75 | 6e d3 20 68 61 6e 64 6c |n .on ru|n. handl|
|00000650| 65 72 2c 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 73 |er, the |commands|
|00000660| 20 69 6e 20 74 68 61 74 | 20 68 61 6e 64 6c 65 72 | in that| handler|
|00000670| 20 77 69 6c 6c 20 72 75 | 6e 20 77 68 65 6e 20 61 | will ru|n when a|
|00000680| 6e 79 20 6f 66 20 74 68 | 65 73 65 20 74 68 69 6e |ny of th|ese thin|
|00000690| 67 73 20 68 61 70 70 65 | 6e 2e 20 28 49 66 20 74 |gs happe|n. (If t|
|000006a0| 68 65 20 73 63 72 69 70 | 74 20 68 61 73 20 73 74 |he scrip|t has st|
|000006b0| 61 74 65 6d 65 6e 74 73 | 20 74 68 61 74 20 61 72 |atements| that ar|
|000006c0| 65 20 6e 6f 74 20 70 61 | 72 74 20 6f 66 20 61 6e |e not pa|rt of an|
|000006d0| 79 20 68 61 6e 64 6c 65 | 72 20 d1 20 6e 6f 74 20 |y handle|r . not |
|000006e0| 65 6e 63 6c 6f 73 65 64 | 20 62 65 74 77 65 65 6e |enclosed| between|
|000006f0| 20 d2 6f 6e 20 c9 d3 20 | 61 6e 64 20 d2 65 6e 64 | .on .. |and .end|
|00000700| 20 c9 d3 2c 20 69 6e 20 | 6f 74 68 65 72 20 77 6f | .., in |other wo|
|00000710| 72 64 73 20 d1 20 74 68 | 6f 73 65 20 73 74 61 74 |rds . th|ose stat|
|00000720| 65 6d 65 6e 74 73 20 61 | 72 65 20 61 6e 20 69 6d |ements a|re an im|
|00000730| 70 6c 69 63 69 74 20 72 | 75 6e 20 68 61 6e 64 6c |plicit r|un handl|
|00000740| 65 72 2e 20 20 4e 6f 74 | 65 3a 20 20 69 74 20 69 |er. Not|e: it i|
|00000750| 73 20 69 6c 6c 65 67 61 | 6c 20 74 6f 20 68 61 76 |s illega|l to hav|
|00000760| 65 20 62 6f 74 68 20 61 | 6e 20 69 6d 70 6c 69 63 |e both a|n implic|
|00000770| 69 74 20 61 6e 64 20 61 | 6e 20 65 78 70 6c 69 63 |it and a|n explic|
|00000780| 69 74 20 72 75 6e 20 68 | 61 6e 64 6c 65 72 2e 29 |it run h|andler.)|
|00000790| 0d 0d 54 68 65 72 65 20 | 69 73 20 61 63 74 75 61 |..There |is actua|
|000007a0| 6c 6c 79 20 6f 6e 65 20 | 74 68 69 6e 67 20 74 68 |lly one |thing th|
|000007b0| 61 74 20 68 61 70 70 65 | 6e 73 20 66 69 72 73 74 |at happe|ns first|
|000007c0| 3a 20 69 66 20 74 68 65 | 20 61 70 70 6c 69 63 61 |: if the| applica|
|000007d0| 74 69 6f 6e 20 69 73 20 | 73 75 70 70 6f 73 65 64 |tion is |supposed|
|000007e0| 20 74 6f 20 64 69 73 70 | 6c 61 79 20 61 20 73 74 | to disp|lay a st|
|000007f0| 61 72 74 75 70 20 73 63 | 72 65 65 6e 20 28 69 66 |artup sc|reen (if|
|00000800| 20 d2 4e 65 76 65 72 20 | 53 68 6f 77 20 53 74 61 | .Never |Show Sta|
|00000810| 72 74 75 70 20 53 63 72 | 65 65 6e d3 20 77 61 73 |rtup Scr|een. was|
|00000820| 20 6e 6f 74 20 63 68 65 | 63 6b 65 64 20 77 68 65 | not che|cked whe|
|00000830| 6e 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |n the ap|plicatio|
|00000840| 6e 20 77 61 73 20 63 72 | 65 61 74 65 64 2c 20 61 |n was cr|eated, a|
|00000850| 6e 64 20 74 68 65 20 75 | 73 65 72 20 68 61 73 20 |nd the u|ser has |
|00000860| 6e 6f 74 20 64 69 73 61 | 62 6c 65 64 20 74 68 65 |not disa|bled the|
|00000870| 20 73 74 61 72 74 75 70 | 20 73 63 72 65 65 6e 29 | startup| screen)|
|00000880| 20 74 68 65 6e 20 74 68 | 65 20 73 74 61 72 74 75 | then th|e startu|
|00000890| 70 20 73 63 72 65 65 6e | 20 77 69 6c 6c 20 62 65 |p screen| will be|
|000008a0| 20 64 69 73 70 6c 61 79 | 65 64 20 66 69 72 73 74 | display|ed first|
|000008b0| 2e 20 54 68 65 20 75 73 | 65 72 20 6d 75 73 74 20 |. The us|er must |
|000008c0| 74 68 65 6e 20 70 72 65 | 73 73 20 74 68 65 20 52 |then pre|ss the R|
|000008d0| 75 6e 20 62 75 74 74 6f | 6e 20 6f 72 20 74 68 65 |un butto|n or the|
|000008e0| 20 52 65 74 75 72 6e 20 | 6b 65 79 20 62 65 66 6f | Return |key befo|
|000008f0| 72 65 20 74 68 65 20 73 | 63 72 69 70 74 d5 73 20 |re the s|cript.s |
|00000900| 72 75 6e 20 68 61 6e 64 | 6c 65 72 20 77 69 6c 6c |run hand|ler will|
|00000910| 20 62 65 20 63 61 6c 6c | 65 64 2e 20 54 68 69 73 | be call|ed. This|
|00000920| 20 69 73 20 64 6f 6e 65 | 20 73 6f 20 74 68 65 20 | is done| so the |
|00000930| 75 73 65 72 20 68 61 73 | 20 61 20 63 68 61 6e 63 |user has| a chanc|
|00000940| 65 20 74 6f 20 72 65 61 | 64 20 74 68 65 20 64 65 |e to rea|d the de|
|00000950| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 74 68 65 |scriptio|n of the|
|00000960| 20 73 63 72 69 70 74 20 | 61 6e 64 20 64 65 63 69 | script |and deci|
|00000970| 64 65 20 77 68 65 74 68 | 65 72 20 74 6f 20 70 72 |de wheth|er to pr|
|00000980| 6f 63 65 65 64 20 62 65 | 66 6f 72 65 20 72 75 6e |oceed be|fore run|
|00000990| 6e 69 6e 67 20 74 68 65 | 20 73 63 72 69 70 74 2e |ning the| script.|
|000009a0| 0d 0d d2 6f 6e 20 6f 70 | 65 6e d3 ca 48 61 6e 64 |...on op|en..Hand|
|000009b0| 6c 65 72 73 0d 0d 54 68 | 65 20 6f 70 65 6e 20 65 |lers..Th|e open e|
|000009c0| 76 65 6e 74 20 69 73 20 | 73 65 6e 74 20 74 6f 20 |vent is |sent to |
|000009d0| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |an appli|cation w|
|000009e0| 68 65 6e 20 46 69 6e 64 | 65 72 20 69 63 6f 6e 73 |hen Find|er icons|
|000009f0| 20 28 77 68 65 74 68 65 | 72 20 64 6f 63 75 6d 65 | (whethe|r docume|
|00000a00| 6e 74 73 2c 20 66 6f 6c | 64 65 72 73 20 6f 72 20 |nts, fol|ders or |
|00000a10| 64 69 73 6b 73 29 20 61 | 72 65 20 64 72 61 67 67 |disks) a|re dragg|
|00000a20| 65 64 20 6f 6e 74 6f 20 | 74 68 65 20 61 70 70 6c |ed onto |the appl|
|00000a30| 69 63 61 74 69 6f 6e d5 | 73 20 69 63 6f 6e 20 61 |ication.|s icon a|
|00000a40| 6e 64 20 64 72 6f 70 70 | 65 64 20 74 68 65 72 65 |nd dropp|ed there|
|00000a50| 2e 20 55 6e 6c 69 6b 65 | 20 74 68 65 20 72 75 6e |. Unlike| the run|
|00000a60| 20 65 76 65 6e 74 2c 20 | 74 68 65 20 6f 70 65 6e | event, |the open|
|00000a70| 20 65 76 65 6e 74 20 69 | 73 20 73 65 6e 74 20 65 | event i|s sent e|
|00000a80| 76 65 6e 20 69 66 20 74 | 68 65 20 61 70 70 6c 69 |ven if t|he appli|
|00000a90| 63 61 74 69 6f 6e 20 77 | 61 73 20 61 6c 72 65 61 |cation w|as alrea|
|00000aa0| 64 79 20 72 75 6e 6e 69 | 6e 67 2e 0d 0d 49 66 20 |dy runni|ng...If |
|00000ab0| 74 68 65 20 73 63 72 69 | 70 74 20 69 6e 20 74 68 |the scri|pt in th|
|00000ac0| 65 20 73 63 72 69 70 74 | 20 61 70 70 6c 69 63 61 |e script| applica|
|00000ad0| 74 69 6f 6e 20 68 61 73 | 20 61 6e 20 d2 6f 6e 20 |tion has| an .on |
|00000ae0| 6f 70 65 6e d3 20 68 61 | 6e 64 6c 65 72 2c 20 74 |open. ha|ndler, t|
|00000af0| 68 65 20 63 6f 6d 6d 61 | 6e 64 73 20 69 6e 20 74 |he comma|nds in t|
|00000b00| 68 61 74 20 68 61 6e 64 | 6c 65 72 20 77 69 6c 6c |hat hand|ler will|
|00000b10| 20 72 75 6e 20 77 68 65 | 6e 20 69 74 65 6d 73 20 | run whe|n items |
|00000b20| 61 72 65 20 64 72 6f 70 | 70 65 64 20 6f 6e 20 74 |are drop|ped on t|
|00000b30| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e d5 73 |he appli|cation.s|
|00000b40| 20 69 63 6f 6e 2e 20 54 | 68 65 20 6f 70 65 6e 20 | icon. T|he open |
|00000b50| 68 61 6e 64 6c 65 72 20 | 74 61 6b 65 73 20 61 20 |handler |takes a |
|00000b60| 73 69 6e 67 6c 65 20 70 | 61 72 61 6d 65 74 65 72 |single p|arameter|
|00000b70| 3b 20 77 68 65 6e 20 74 | 68 65 20 68 61 6e 64 6c |; when t|he handl|
|00000b80| 65 72 20 69 73 20 63 61 | 6c 6c 65 64 2c 20 74 68 |er is ca|lled, th|
|00000b90| 65 20 76 61 6c 75 65 20 | 6f 66 20 74 68 61 74 20 |e value |of that |
|00000ba0| 70 61 72 61 6d 65 74 65 | 72 20 69 73 20 61 20 6c |paramete|r is a l|
|00000bb0| 69 73 74 20 6f 66 20 61 | 6c 6c 20 74 68 65 20 69 |ist of a|ll the i|
|00000bc0| 74 65 6d 73 20 74 68 61 | 74 20 77 65 72 65 20 64 |tems tha|t were d|
|00000bd0| 72 6f 70 70 65 64 2e 20 | 28 45 61 63 68 20 69 74 |ropped. |(Each it|
|00000be0| 65 6d 20 6f 66 20 74 68 | 65 20 6c 69 73 74 20 69 |em of th|e list i|
|00000bf0| 73 20 61 6e 20 61 6c 69 | 61 73 3b 20 79 6f 75 20 |s an ali|as; you |
|00000c00| 63 61 6e 20 63 6f 6e 76 | 65 72 74 20 69 74 20 74 |can conv|ert it t|
|00000c10| 6f 20 61 20 70 61 74 68 | 6e 61 6d 65 20 62 79 20 |o a path|name by |
|00000c20| 75 73 69 6e 67 20 d2 61 | 73 20 73 74 72 69 6e 67 |using .a|s string|
|00000c30| d3 2e 29 0d 0d 54 68 65 | 20 66 69 6c 65 73 2c 20 |..)..The| files, |
|00000c40| 66 6f 6c 64 65 72 73 20 | 6f 72 20 64 69 73 6b 73 |folders |or disks|
|00000c50| 20 61 72 65 20 6e 6f 74 | 20 6d 6f 76 65 64 2c 20 | are not| moved, |
|00000c60| 63 6f 70 69 65 64 20 6f | 72 20 61 66 66 65 63 74 |copied o|r affect|
|00000c70| 65 64 20 69 6e 20 61 6e | 79 20 77 61 79 20 62 79 |ed in an|y way by|
|00000c80| 20 62 65 69 6e 67 20 64 | 72 61 67 67 65 64 20 6f | being d|ragged o|
|00000c90| 6e 74 6f 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |nto the |applicat|
|00000ca0| 69 6f 6e 2e 20 54 68 65 | 20 46 69 6e 64 65 72 20 |ion. The| Finder |
|00000cb0| 6a 75 73 74 20 6d 61 6b | 65 73 20 61 20 6c 69 73 |just mak|es a lis|
|00000cc0| 74 20 6f 66 20 74 68 65 | 69 72 20 69 64 65 6e 74 |t of the|ir ident|
|00000cd0| 69 74 69 65 73 20 61 6e | 64 20 73 65 6e 64 73 20 |ities an|d sends |
|00000ce0| 74 68 61 74 20 6c 69 73 | 74 20 74 6f 20 74 68 65 |that lis|t to the|
|00000cf0| 20 73 63 72 69 70 74 2e | 20 4f 66 20 63 6f 75 72 | script.| Of cour|
|00000d00| 73 65 2c 20 79 6f 75 72 | 20 73 63 72 69 70 74 20 |se, your| script |
|00000d10| 63 6f 75 6c 64 20 65 61 | 73 69 6c 79 20 74 65 6c |could ea|sily tel|
|00000d20| 6c 20 74 68 65 20 46 69 | 6e 64 65 72 20 74 6f 20 |l the Fi|nder to |
|00000d30| 6d 6f 76 65 2c 20 63 6f | 70 79 20 6f 72 20 6f 74 |move, co|py or ot|
|00000d40| 68 65 72 77 69 73 65 20 | 61 66 66 65 63 74 20 74 |herwise |affect t|
|00000d50| 68 65 20 69 74 65 6d 73 | 2e 20 54 68 61 74 27 73 |he items|. That's|
|00000d60| 20 75 70 20 74 6f 20 79 | 6f 75 2e 0d 0d 4e 6f 74 | up to y|ou...Not|
|00000d70| 65 3a 20 44 75 65 20 74 | 6f 20 61 20 62 75 67 20 |e: Due t|o a bug |
|00000d80| 69 6e 20 74 68 65 20 46 | 69 6e 64 65 72 2c 20 79 |in the F|inder, y|
|00000d90| 6f 75 20 63 61 6e d5 74 | 20 64 72 6f 70 20 66 69 |ou can.t| drop fi|
|00000da0| 6c 65 73 20 6f 6e 20 61 | 6e 20 6f 74 68 65 72 77 |les on a|n otherw|
|00000db0| 69 73 65 20 64 72 6f 70 | 70 61 62 6c 65 20 73 63 |ise drop|pable sc|
|00000dc0| 72 69 70 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ript app|lication|
|00000dd0| 2c 20 69 66 20 74 68 65 | 20 61 70 70 6c 69 63 61 |, if the| applica|
|00000de0| 74 69 6f 6e 20 69 73 20 | 6f 6e 20 61 20 66 6c 6f |tion is |on a flo|
|00000df0| 70 70 79 20 64 69 73 6b | 2e 0d 0d 53 74 61 79 2d |ppy disk|...Stay-|
|00000e00| 4f 70 65 6e 20 53 63 72 | 69 70 74 20 41 70 70 6c |Open Scr|ipt Appl|
|00000e10| 69 63 61 74 69 6f 6e 73 | 0d 0d 42 79 20 64 65 66 |ications|..By def|
|00000e20| 61 75 6c 74 2c 20 61 20 | 73 63 72 69 70 74 20 61 |ault, a |script a|
|00000e30| 70 70 6c 69 63 61 74 69 | 6f 6e 20 70 72 6f 63 65 |pplicati|on proce|
|00000e40| 73 73 65 73 20 6f 6e 65 | 20 65 76 65 6e 74 20 61 |sses one| event a|
|00000e50| 6e 64 20 74 68 65 6e 20 | 71 75 69 74 73 2e 20 54 |nd then |quits. T|
|00000e60| 68 69 73 20 61 6c 6c 6f | 77 73 20 69 74 20 74 6f |his allo|ws it to|
|00000e70| 20 70 65 72 66 6f 72 6d | 20 61 20 73 69 6e 67 6c | perform| a singl|
|00000e80| 65 20 74 61 73 6b 20 69 | 6e 20 72 65 73 70 6f 6e |e task i|n respon|
|00000e90| 73 65 20 74 6f 20 62 65 | 69 6e 67 20 6c 61 75 6e |se to be|ing laun|
|00000ea0| 63 68 65 64 20 6f 72 20 | 68 61 76 69 6e 67 20 69 |ched or |having i|
|00000eb0| 74 65 6d 73 20 64 72 6f | 70 70 65 64 20 6f 6e 20 |tems dro|pped on |
|00000ec0| 69 74 73 20 69 63 6f 6e | 2c 20 61 6e 64 20 74 68 |its icon|, and th|
|00000ed0| 65 6e 20 67 65 74 20 6f | 75 74 20 6f 66 20 79 6f |en get o|ut of yo|
|00000ee0| 75 72 20 77 61 79 2e 20 | 4f 6e 20 74 68 65 20 6f |ur way. |On the o|
|00000ef0| 74 68 65 72 20 68 61 6e | 64 2c 20 61 20 73 74 61 |ther han|d, a sta|
|00000f00| 79 2d 6f 70 65 6e 20 73 | 63 72 69 70 74 20 61 70 |y-open s|cript ap|
|00000f10| 70 6c 69 63 61 74 69 6f | 6e 20 28 6f 6e 65 20 74 |plicatio|n (one t|
|00000f20| 68 61 74 20 77 61 73 20 | 73 61 76 65 64 20 77 69 |hat was |saved wi|
|00000f30| 74 68 20 74 68 65 20 d2 | 53 74 61 79 20 4f 70 65 |th the .|Stay Ope|
|00000f40| 6e d3 20 62 6f 78 20 63 | 68 65 63 6b 65 64 20 69 |n. box c|hecked i|
|00000f50| 6e 20 74 68 65 20 53 63 | 72 69 70 74 20 45 64 69 |n the Sc|ript Edi|
|00000f60| 74 6f 72 20 73 61 76 65 | 20 64 69 61 6c 6f 67 29 |tor save| dialog)|
|00000f70| 20 77 69 6c 6c 20 73 74 | 61 79 20 6f 70 65 6e 20 | will st|ay open |
|00000f80| 6f 6e 63 65 20 69 74 d5 | 73 20 6c 61 75 6e 63 68 |once it.|s launch|
|00000f90| 65 64 20 61 6e 64 20 6e | 6f 74 20 71 75 69 74 20 |ed and n|ot quit |
|00000fa0| 75 6e 74 69 6c 20 74 6f | 6c 64 20 74 6f 2e 0d 0d |until to|ld to...|
|00000fb0| 41 20 73 74 61 79 2d 6f | 70 65 6e 20 73 63 72 69 |A stay-o|pen scri|
|00000fc0| 70 74 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 68 |pt appli|cation h|
|00000fd0| 61 73 20 73 65 76 65 72 | 61 6c 20 6d 61 6a 6f 72 |as sever|al major|
|00000fe0| 20 75 73 65 73 3a 0d a5 | 09 49 74 27 73 20 66 61 | uses:..|.It's fa|
|00000ff0| 73 74 65 72 20 66 6f 72 | 20 74 68 65 20 61 70 70 |ster for| the app|
|00001000| 6c 69 63 61 74 69 6f 6e | 20 74 6f 20 73 74 61 79 |lication| to stay|
|00001010| 20 61 72 6f 75 6e 64 20 | 74 68 61 6e 20 69 74 20 | around |than it |
|00001020| 69 73 20 66 6f 72 20 69 | 74 20 74 6f 20 6c 61 75 |is for i|t to lau|
|00001030| 6e 63 68 20 61 6e 64 20 | 71 75 69 74 20 65 76 65 |nch and |quit eve|
|00001040| 72 79 20 74 69 6d 65 20 | 79 6f 75 20 64 72 6f 70 |ry time |you drop|
|00001050| 20 73 6f 6d 65 74 68 69 | 6e 67 20 6f 6e 20 69 74 | somethi|ng on it|
|00001060| 2e 20 49 66 20 79 6f 75 | 20 68 61 76 65 20 61 20 |. If you| have a |
|00001070| d2 64 72 6f 70 20 62 6f | 78 d3 20 74 68 61 74 20 |.drop bo|x. that |
|00001080| 79 6f 75 20 75 73 65 20 | 76 65 72 79 20 66 72 65 |you use |very fre|
|00001090| 71 75 65 6e 74 6c 79 2c | 20 79 6f 75 20 6d 69 67 |quently,| you mig|
|000010a0| 68 74 20 77 61 6e 74 20 | 74 6f 20 6d 61 6b 65 20 |ht want |to make |
|000010b0| 69 74 20 73 74 61 79 2d | 6f 70 65 6e 2e 0d a5 09 |it stay-|open....|
|000010c0| 4f 74 68 65 72 20 61 70 | 70 6c 69 63 61 74 69 6f |Other ap|plicatio|
|000010d0| 6e 73 20 6f 72 20 73 63 | 72 69 70 74 73 20 63 61 |ns or sc|ripts ca|
|000010e0| 6e 20 73 65 6e 64 20 69 | 74 20 65 76 65 6e 74 73 |n send i|t events|
|000010f0| 20 6f 74 68 65 72 20 74 | 68 61 6e 20 d2 72 75 6e | other t|han .run|
|00001100| d3 20 61 6e 64 20 d2 6f | 70 65 6e d3 2c 20 61 6e |. and .o|pen., an|
|00001110| 64 20 74 68 65 20 73 63 | 72 69 70 74 20 63 61 6e |d the sc|ript can|
|00001120| 20 69 6e 63 6c 75 64 65 | 20 68 61 6e 64 6c 65 72 | include| handler|
|00001130| 73 20 74 68 61 74 20 77 | 69 6c 6c 20 62 65 20 74 |s that w|ill be t|
|00001140| 72 69 67 67 65 72 65 64 | 20 62 79 20 74 68 6f 73 |riggered| by thos|
|00001150| 65 20 65 76 65 6e 74 73 | 2e 20 54 68 69 73 20 6d |e events|. This m|
|00001160| 61 6b 65 73 20 74 68 65 | 20 61 70 70 6c 69 63 61 |akes the| applica|
|00001170| 74 69 6f 6e 20 69 6e 74 | 6f 20 61 20 73 63 72 69 |tion int|o a scri|
|00001180| 70 74 20 73 65 72 76 65 | 72 2e 0d a5 09 54 68 65 |pt serve|r....The|
|00001190| 20 73 63 72 69 70 74 20 | 63 61 6e 20 70 65 72 66 | script |can perf|
|000011a0| 6f 72 6d 20 70 65 72 69 | 6f 64 69 63 20 61 63 74 |orm peri|odic act|
|000011b0| 69 6f 6e 73 2c 20 65 76 | 65 6e 20 69 6e 20 74 68 |ions, ev|en in th|
|000011c0| 65 20 62 61 63 6b 67 72 | 6f 75 6e 64 2c 20 61 73 |e backgr|ound, as|
|000011d0| 20 6c 6f 6e 67 20 61 73 | 20 74 68 65 20 61 70 70 | long as| the app|
|000011e0| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 72 75 6e 6e |lication| is runn|
|000011f0| 69 6e 67 2e 0d 0d 53 63 | 72 69 70 74 20 53 65 72 |ing...Sc|ript Ser|
|00001200| 76 65 72 73 0d 0d 41 20 | 73 63 72 69 70 74 20 63 |vers..A |script c|
|00001210| 61 6e 20 69 6e 63 6c 75 | 64 65 20 61 6e 79 20 6e |an inclu|de any n|
|00001220| 75 6d 62 65 72 20 6f 66 | 20 68 61 6e 64 6c 65 72 |umber of| handler|
|00001230| 73 20 66 6f 72 20 61 6e | 79 20 6e 75 6d 62 65 72 |s for an|y number|
|00001240| 20 6f 66 20 65 76 65 6e | 74 73 2c 20 61 73 20 64 | of even|ts, as d|
|00001250| 65 73 63 72 69 62 65 64 | 20 69 6e 20 74 68 65 20 |escribed| in the |
|00001260| 41 70 70 6c 65 53 63 72 | 69 70 74 20 4c 61 6e 67 |AppleScr|ipt Lang|
|00001270| 75 61 67 65 20 52 65 66 | 65 72 65 6e 63 65 20 4d |uage Ref|erence M|
|00001280| 61 6e 75 61 6c 2e 20 41 | 6e 79 20 68 61 6e 64 6c |anual. A|ny handl|
|00001290| 65 72 20 69 6e 20 61 20 | 73 63 72 69 70 74 20 61 |er in a |script a|
|000012a0| 70 70 6c 69 63 61 74 69 | 6f 6e d5 73 20 73 63 72 |pplicati|on.s scr|
|000012b0| 69 70 74 20 63 61 6e 20 | 62 65 20 63 61 6c 6c 65 |ipt can |be calle|
|000012c0| 64 20 62 79 20 61 6e 6f | 74 68 65 72 20 73 63 72 |d by ano|ther scr|
|000012d0| 69 70 74 20 28 6f 72 20 | 61 6e 6f 74 68 65 72 20 |ipt (or |another |
|000012e0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 68 61 74 |applicat|ion that|
|000012f0| 20 63 61 6e 20 73 65 6e | 64 20 41 70 70 6c 65 20 | can sen|d Apple |
|00001300| 65 76 65 6e 74 73 2e 29 | 0d 0d 52 65 2d 45 6e 74 |events.)|..Re-Ent|
|00001310| 72 61 6e 63 79 20 49 73 | 73 75 65 73 0d 0d 41 20 |rancy Is|sues..A |
|00001320| 73 63 72 69 70 74 20 61 | 70 70 6c 69 63 61 74 69 |script a|pplicati|
|00001330| 6f 6e 20 68 61 6e 64 6c | 65 73 20 69 6e 63 6f 6d |on handl|es incom|
|00001340| 69 6e 67 20 65 76 65 6e | 74 73 20 65 76 65 6e 20 |ing even|ts even |
|00001350| 69 66 20 69 74 20 69 73 | 20 61 6c 72 65 61 64 79 |if it is| already|
|00001360| 20 72 75 6e 6e 69 6e 67 | 20 61 20 68 61 6e 64 6c | running| a handl|
|00001370| 65 72 20 69 6e 20 72 65 | 73 70 6f 6e 73 65 20 74 |er in re|sponse t|
|00001380| 6f 20 61 20 70 72 65 76 | 69 6f 75 73 20 65 76 65 |o a prev|ious eve|
|00001390| 6e 74 2e 20 54 68 69 73 | 20 6d 65 61 6e 73 20 74 |nt. This| means t|
|000013a0| 68 61 74 20 65 78 65 63 | 75 74 69 6f 6e 20 6f 66 |hat exec|ution of|
|000013b0| 20 61 20 68 61 6e 64 6c | 65 72 20 63 61 6e 20 62 | a handl|er can b|
|000013c0| 65 20 69 6e 74 65 72 72 | 75 70 74 65 64 20 77 68 |e interr|upted wh|
|000013d0| 69 6c 65 20 61 6e 6f 74 | 68 65 72 20 68 61 6e 64 |ile anot|her hand|
|000013e0| 6c 65 72 20 69 73 20 72 | 75 6e 2c 20 61 20 73 74 |ler is r|un, a st|
|000013f0| 61 74 65 20 6b 6e 6f 77 | 6e 20 61 73 20 72 65 2d |ate know|n as re-|
|00001400| 65 6e 74 72 61 6e 63 79 | 2e 20 48 6f 77 65 76 65 |entrancy|. Howeve|
|00001410| 72 2c 20 73 63 72 69 70 | 74 20 61 70 70 6c 69 63 |r, scrip|t applic|
|00001420| 61 74 69 6f 6e 73 20 61 | 72 65 20 6e 6f 74 20 6d |ations a|re not m|
|00001430| 75 6c 74 69 2d 74 61 73 | 6b 69 6e 67 2c 20 73 6f |ulti-tas|king, so|
|00001440| 20 74 77 6f 20 74 68 69 | 6e 67 73 20 77 69 6c 6c | two thi|ngs will|
|00001450| 20 6e 65 76 65 72 20 62 | 65 20 68 61 70 70 65 6e | never b|e happen|
|00001460| 69 6e 67 20 61 74 20 74 | 68 65 20 73 61 6d 65 20 |ing at t|he same |
|00001470| 74 69 6d 65 2e 20 54 68 | 65 20 66 69 72 73 74 20 |time. Th|e first |
|00001480| 66 6c 6f 77 20 6f 66 20 | 63 6f 6e 74 72 6f 6c 20 |flow of |control |
|00001490| 68 61 6c 74 73 20 75 6e | 74 69 6c 20 74 68 65 20 |halts un|til the |
|000014a0| 73 65 63 6f 6e 64 20 6f | 6e 65 20 66 69 6e 69 73 |second o|ne finis|
|000014b0| 68 65 73 2e 0d 0d 54 68 | 69 73 20 63 61 6e 20 63 |hes...Th|is can c|
|000014c0| 61 75 73 65 20 70 72 6f | 62 6c 65 6d 73 20 69 66 |ause pro|blems if|
|000014d0| 20 62 6f 74 68 20 66 6c | 6f 77 73 20 6f 66 20 63 | both fl|ows of c|
|000014e0| 6f 6e 74 72 6f 6c 20 6d | 6f 64 69 66 79 20 74 68 |ontrol m|odify th|
|000014f0| 65 20 73 61 6d 65 20 73 | 63 72 69 70 74 20 70 72 |e same s|cript pr|
|00001500| 6f 70 65 72 74 79 2c 20 | 6f 72 20 62 6f 74 68 20 |operty, |or both |
|00001510| 73 65 6e 64 20 63 6f 6d | 6d 61 6e 64 73 20 74 6f |send com|mands to|
|00001520| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | an appl|ication |
|00001530| 74 6f 20 6d 6f 64 69 66 | 79 20 69 74 73 20 64 61 |to modif|y its da|
|00001540| 74 61 2e 20 41 70 70 6c | 65 53 63 72 69 70 74 20 |ta. Appl|eScript |
|00001550| 31 2e 30 20 64 6f 65 73 | 20 6e 6f 74 20 68 61 76 |1.0 does| not hav|
|00001560| 65 20 66 61 63 69 6c 69 | 74 69 65 73 20 28 6c 69 |e facili|ties (li|
|00001570| 6b 65 20 73 65 6d 61 70 | 68 6f 72 65 73 20 6f 72 |ke semap|hores or|
|00001580| 20 63 72 69 74 69 63 61 | 6c 2d 73 65 63 74 69 6f | critica|l-sectio|
|00001590| 6e 73 29 20 74 6f 20 64 | 65 61 6c 20 77 69 74 68 |ns) to d|eal with|
|000015a0| 20 74 68 65 73 65 20 69 | 73 73 75 65 73 2c 20 73 | these i|ssues, s|
|000015b0| 6f 20 62 65 20 63 61 72 | 65 66 75 6c 2e 20 59 6f |o be car|eful. Yo|
|000015c0| 75 20 6d 69 67 68 74 20 | 74 72 79 20 64 65 63 6c |u might |try decl|
|000015d0| 61 72 69 6e 67 20 61 20 | d2 62 75 73 79 d3 20 70 |aring a |.busy. p|
|000015e0| 72 6f 70 65 72 74 79 20 | 69 6e 20 79 6f 75 72 20 |roperty |in your |
|000015f0| 73 63 72 69 70 74 20 61 | 6e 64 20 73 65 74 74 69 |script a|nd setti|
|00001600| 6e 67 20 69 74 20 74 6f | 20 74 72 75 65 20 64 75 |ng it to| true du|
|00001610| 72 69 6e 67 20 63 72 69 | 74 69 63 61 6c 20 6f 70 |ring cri|tical op|
|00001620| 65 72 61 74 69 6f 6e 73 | 20 61 73 20 61 20 63 72 |erations| as a cr|
|00001630| 75 64 65 20 66 6f 72 6d | 20 6f 66 20 73 65 6d 61 |ude form| of sema|
|00001640| 70 68 6f 72 65 2e 0d 0d | d2 6f 6e 20 69 64 6c 65 |phore...|.on idle|
|00001650| d3 20 48 61 6e 64 6c 65 | 72 73 20 61 6e 64 20 41 |. Handle|rs and A|
|00001660| 67 65 6e 74 73 0d 0d 41 | 20 73 74 61 79 2d 6f 70 |gents..A| stay-op|
|00001670| 65 6e 20 73 63 72 69 70 | 74 20 61 70 70 6c 69 63 |en scrip|t applic|
|00001680| 61 74 69 6f 6e 20 69 73 | 20 73 65 6e 74 20 70 65 |ation is| sent pe|
|00001690| 72 69 6f 64 69 63 20 d2 | 69 64 6c 65 d3 20 65 76 |riodic .|idle. ev|
|000016a0| 65 6e 74 73 20 77 68 65 | 6e 65 76 65 72 20 69 74 |ents whe|never it|
|000016b0| 27 73 20 6e 6f 74 20 72 | 65 73 70 6f 6e 64 69 6e |'s not r|espondin|
|000016c0| 67 20 74 6f 20 69 6e 63 | 6f 6d 69 6e 67 20 65 76 |g to inc|oming ev|
|000016d0| 65 6e 74 73 2c 20 61 6e | 64 20 63 61 6e 20 63 61 |ents, an|d can ca|
|000016e0| 74 63 68 20 74 68 65 6d | 20 77 69 74 68 20 61 6e |tch them| with an|
|000016f0| 20 d2 6f 6e 20 69 64 6c | 65 d3 20 68 61 6e 64 6c | .on idl|e. handl|
|00001700| 65 72 2e 20 54 68 65 20 | 63 6f 6d 6d 61 6e 64 73 |er. The |commands|
|00001710| 20 69 6e 20 74 68 61 74 | 20 68 61 6e 64 6c 65 72 | in that| handler|
|00001720| 20 77 69 6c 6c 20 74 68 | 65 6e 20 62 65 20 72 75 | will th|en be ru|
|00001730| 6e 20 70 65 72 69 6f 64 | 69 63 61 6c 6c 79 20 28 |n period|ically (|
|00001740| 65 76 65 72 79 20 33 30 | 20 73 65 63 6f 6e 64 73 |every 30| seconds|
|00001750| 2c 20 62 79 20 64 65 66 | 61 75 6c 74 2e 29 20 46 |, by def|ault.) F|
|00001760| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 69 66 20 |or insta|nce, if |
|00001770| 74 68 65 20 73 63 72 69 | 70 74 20 69 6e 63 6c 75 |the scri|pt inclu|
|00001780| 64 65 73 3a 0d 0d 6f 6e | 20 69 64 6c 65 0d 09 62 |des:..on| idle..b|
|00001790| 65 65 70 0d 65 6e 64 20 | 69 64 6c 65 0d 0d 74 68 |eep.end |idle..th|
|000017a0| 65 6e 20 74 68 65 20 73 | 63 72 69 70 74 20 61 70 |en the s|cript ap|
|000017b0| 70 6c 69 63 61 74 69 6f | 6e 2c 20 77 68 65 6e 20 |plicatio|n, when |
|000017c0| 72 75 6e 2c 20 77 69 6c | 6c 20 62 65 65 70 20 65 |run, wil|l beep e|
|000017d0| 76 65 72 79 20 33 30 20 | 73 65 63 6f 6e 64 73 2e |very 30 |seconds.|
|000017e0| 20 54 6f 20 63 68 61 6e | 67 65 20 74 68 65 20 72 | To chan|ge the r|
|000017f0| 61 74 65 2c 20 72 65 74 | 75 72 6e 20 74 68 65 20 |ate, ret|urn the |
|00001800| 6e 75 6d 62 65 72 20 6f | 66 20 73 65 63 6f 6e 64 |number o|f second|
|00001810| 73 20 74 6f 20 77 61 69 | 74 20 61 73 20 74 68 65 |s to wai|t as the|
|00001820| 20 72 65 73 75 6c 74 20 | 6f 66 20 74 68 65 20 73 | result |of the s|
|00001830| 63 72 69 70 74 3a 0d 0d | 2d 2d 20 54 68 69 73 20 |cript:..|-- This |
|00001840| 73 63 72 69 70 74 20 77 | 69 6c 6c 20 62 65 65 70 |script w|ill beep|
|00001850| 20 65 76 65 72 79 20 35 | 20 73 65 63 6f 6e 64 73 | every 5| seconds|
|00001860| 2e 0d 6f 6e 20 69 64 6c | 65 0d 09 62 65 65 70 0d |..on idl|e..beep.|
|00001870| 09 72 65 74 75 72 6e 20 | 35 0d 65 6e 64 20 69 64 |.return |5.end id|
|00001880| 6c 65 0d 0d 49 6e 20 6f | 74 68 65 72 20 77 6f 72 |le..In o|ther wor|
|00001890| 64 73 2c 20 69 66 20 74 | 68 65 20 68 61 6e 64 6c |ds, if t|he handl|
|000018a0| 65 72 20 72 65 74 75 72 | 6e 73 20 61 20 70 6f 73 |er retur|ns a pos|
|000018b0| 69 74 69 76 65 20 6e 75 | 6d 62 65 72 2c 20 74 68 |itive nu|mber, th|
|000018c0| 61 74 20 6e 75 6d 62 65 | 72 20 62 65 63 6f 6d 65 |at numbe|r become|
|000018d0| 73 20 74 68 65 20 72 61 | 74 65 20 28 69 6e 20 73 |s the ra|te (in s|
|000018e0| 65 63 6f 6e 64 73 29 20 | 61 74 20 77 68 69 63 68 |econds) |at which|
|000018f0| 20 74 68 65 20 69 64 6c | 65 20 68 61 6e 64 6c 65 | the idl|e handle|
|00001900| 72 20 69 73 20 63 61 6c | 6c 65 64 2e 20 49 66 20 |r is cal|led. If |
|00001910| 74 68 65 20 72 65 73 75 | 6c 74 20 6f 66 20 74 68 |the resu|lt of th|
|00001920| 65 20 68 61 6e 64 6c 65 | 72 20 69 73 20 61 20 6e |e handle|r is a n|
|00001930| 6f 6e 2d 6e 75 6d 65 72 | 69 63 20 76 61 6c 75 65 |on-numer|ic value|
|00001940| 2c 20 74 68 65 20 72 61 | 74 65 20 77 69 6c 6c 20 |, the ra|te will |
|00001950| 6e 6f 74 20 62 65 20 63 | 68 61 6e 67 65 64 2e 0d |not be c|hanged..|
|00001960| 0d 42 65 20 63 61 72 65 | 66 75 6c 21 20 20 54 68 |.Be care|ful! Th|
|00001970| 65 20 72 65 73 75 6c 74 | 20 72 65 74 75 72 6e 65 |e result| returne|
|00001980| 64 20 66 72 6f 6d 20 61 | 20 68 61 6e 64 6c 65 72 |d from a| handler|
|00001990| 20 69 73 20 6a 75 73 74 | 20 74 68 65 20 72 65 73 | is just| the res|
|000019a0| 75 6c 74 20 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |ult of t|he last |
|000019b0| 73 74 61 74 65 6d 65 6e | 74 2c 20 65 76 65 6e 20 |statemen|t, even |
|000019c0| 69 66 20 69 74 20 64 6f | 65 73 6e 27 74 20 65 78 |if it do|esn't ex|
|000019d0| 70 6c 69 63 69 74 6c 79 | 20 73 61 79 20 d2 72 65 |plicitly| say .re|
|000019e0| 74 75 72 6e d3 2e 20 46 | 6f 72 20 69 6e 73 74 61 |turn.. F|or insta|
|000019f0| 6e 63 65 2c 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |nce, the| followi|
|00001a00| 6e 67 20 68 61 6e 64 6c | 65 72 20 77 69 6c 6c 20 |ng handl|er will |
|00001a10| 28 70 72 6f 62 61 62 6c | 79 20 75 6e 69 6e 74 65 |(probabl|y uninte|
|00001a20| 6e 74 69 6f 6e 61 6c 6c | 79 29 20 62 65 20 63 61 |ntionall|y) be ca|
|00001a30| 6c 6c 65 64 20 6f 6e 6c | 79 20 65 76 65 72 79 20 |lled onl|y every |
|00001a40| 66 69 66 74 65 65 6e 20 | 6d 69 6e 75 74 65 73 3a |fifteen |minutes:|
|00001a50| 0d 0d 6f 6e 20 69 64 6c | 65 0d 09 73 65 74 20 78 |..on idl|e..set x|
|00001a60| 20 74 6f 20 33 30 0d 09 | 62 65 65 70 0d 09 73 65 | to 30..|beep..se|
|00001a70| 74 20 78 20 74 6f 20 78 | 20 2a 20 78 20 2d 2d 20 |t x to x| * x -- |
|00001a80| 42 41 44 21 20 54 68 65 | 20 72 65 73 75 6c 74 20 |BAD! The| result |
|00001a90| 28 39 30 30 29 20 77 69 | 6c 6c 20 62 65 20 72 65 |(900) wi|ll be re|
|00001aa0| 74 75 72 6e 65 64 20 66 | 72 6f 6d 20 74 68 65 20 |turned f|rom the |
|00001ab0| 68 61 6e 64 6c 65 72 21 | 0d 65 6e 64 20 69 64 6c |handler!|.end idl|
|00001ac0| 65 0d 0d 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |e..If yo|u want t|
|00001ad0| 6f 20 62 65 20 73 75 72 | 65 20 79 6f 75 27 72 65 |o be sur|e you're|
|00001ae0| 20 6e 6f 74 20 63 68 61 | 6e 67 69 6e 67 20 74 68 | not cha|nging th|
|00001af0| 65 20 69 64 6c 65 20 72 | 61 74 65 2c 20 6a 75 73 |e idle r|ate, jus|
|00001b00| 74 20 72 65 74 75 72 6e | 20 7a 65 72 6f 2e 0d 0d |t return| zero...|
|00001b10| d2 6f 6e 20 71 75 69 74 | d3 20 68 61 6e 64 6c 65 |.on quit|. handle|
|00001b20| 72 73 0d 0d 42 79 20 69 | 6e 63 6c 75 64 69 6e 67 |rs..By i|ncluding|
|00001b30| 20 61 6e 20 d2 6f 6e 20 | 71 75 69 74 d3 20 68 61 | an .on |quit. ha|
|00001b40| 6e 64 6c 65 72 20 69 6e | 20 79 6f 75 72 20 73 63 |ndler in| your sc|
|00001b50| 72 69 70 74 2c 20 79 6f | 75 20 63 61 6e 20 63 61 |ript, yo|u can ca|
|00001b60| 74 63 68 20 74 68 65 20 | d2 71 75 69 74 d3 20 65 |tch the |.quit. e|
|00001b70| 76 65 6e 74 20 28 73 65 | 6e 74 20 77 68 65 6e 20 |vent (se|nt when |
|00001b80| 74 68 65 20 75 73 65 72 | 20 63 68 6f 6f 73 65 73 |the user| chooses|
|00001b90| 20 74 68 65 20 51 75 69 | 74 20 6d 65 6e 75 20 63 | the Qui|t menu c|
|00001ba0| 6f 6d 6d 61 6e 64 20 6f | 72 20 70 72 65 73 73 65 |ommand o|r presse|
|00001bb0| 73 20 43 6f 6d 6d 61 6e | 64 2d 51 29 20 62 65 66 |s Comman|d-Q) bef|
|00001bc0| 6f 72 65 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |ore the |applicat|
|00001bd0| 69 6f 6e 20 69 74 73 65 | 6c 66 20 68 61 6e 64 6c |ion itse|lf handl|
|00001be0| 65 73 20 69 74 20 61 6e | 64 20 71 75 69 74 73 2e |es it an|d quits.|
|00001bf0| 20 54 68 65 20 63 6f 6d | 6d 61 6e 64 73 20 69 6e | The com|mands in|
|00001c00| 20 74 68 65 20 68 61 6e | 64 6c 65 72 20 63 6f 75 | the han|dler cou|
|00001c10| 6c 64 20 73 65 74 20 73 | 63 72 69 70 74 20 70 72 |ld set s|cript pr|
|00001c20| 6f 70 65 72 74 69 65 73 | 2c 20 74 65 6c 6c 20 61 |operties|, tell a|
|00001c30| 6e 6f 74 68 65 72 20 61 | 70 70 6c 69 63 61 74 69 |nother a|pplicati|
|00001c40| 6f 6e 20 74 6f 20 64 6f | 20 73 6f 6d 65 74 68 69 |on to do| somethi|
|00001c50| 6e 67 2c 20 6f 72 20 64 | 69 73 70 6c 61 79 20 61 |ng, or d|isplay a|
|00001c60| 20 64 69 61 6c 6f 67 2e | 20 54 68 65 20 68 61 6e | dialog.| The han|
|00001c70| 64 6c 65 72 20 63 61 6e | 20 64 65 63 69 64 65 20 |dler can| decide |
|00001c80| 77 68 65 74 68 65 72 20 | 6f 72 20 6e 6f 74 20 74 |whether |or not t|
|00001c90| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 73 |he appli|cation s|
|00001ca0| 68 6f 75 6c 64 20 71 75 | 69 74 20 62 79 20 63 68 |hould qu|it by ch|
|00001cb0| 6f 6f 73 69 6e 67 20 77 | 68 65 74 68 65 72 20 74 |oosing w|hether t|
|00001cc0| 6f 20 63 6f 6e 74 69 6e | 75 65 20 74 68 65 20 71 |o contin|ue the q|
|00001cd0| 75 69 74 2e 20 49 66 20 | 74 68 65 20 68 61 6e 64 |uit. If |the hand|
|00001ce0| 6c 65 72 20 63 61 6c 6c | 73 20 d2 63 6f 6e 74 69 |ler call|s .conti|
|00001cf0| 6e 75 65 20 71 75 69 74 | d2 2c 20 74 68 65 20 61 |nue quit|., the a|
|00001d00| 70 70 6c 69 63 61 74 69 | 6f 6e 27 73 20 64 65 66 |pplicati|on's def|
|00001d10| 61 75 6c 74 20 71 75 69 | 74 20 62 65 68 61 76 69 |ault qui|t behavi|
|00001d20| 6f 72 20 77 69 6c 6c 20 | 62 65 20 69 6e 76 6f 6b |or will |be invok|
|00001d30| 65 64 20 61 6e 64 20 74 | 68 65 20 61 70 70 6c 69 |ed and t|he appli|
|00001d40| 63 61 74 69 6f 6e 20 77 | 69 6c 6c 20 69 6e 20 66 |cation w|ill in f|
|00001d50| 61 63 74 20 71 75 69 74 | 2e 20 49 66 20 74 68 65 |act quit|. If the|
|00001d60| 20 71 75 69 74 20 68 61 | 6e 64 6c 65 72 20 72 65 | quit ha|ndler re|
|00001d70| 74 75 72 6e 73 20 77 69 | 74 68 6f 75 74 20 63 6f |turns wi|thout co|
|00001d80| 6e 74 69 6e 75 69 6e 67 | 20 74 68 65 20 71 75 69 |ntinuing| the qui|
|00001d90| 74 20 65 76 65 6e 74 2c | 20 74 68 65 20 61 70 70 |t event,| the app|
|00001da0| 6c 69 63 61 74 69 6f 6e | 20 77 69 6c 6c 20 6e 6f |lication| will no|
|00001db0| 74 20 71 75 69 74 2e 20 | 48 65 72 65 27 73 20 61 |t quit. |Here's a|
|00001dc0| 20 68 61 6e 64 6c 65 72 | 20 74 68 61 74 20 63 68 | handler| that ch|
|00001dd0| 65 63 6b 73 20 77 69 74 | 68 20 74 68 65 20 75 73 |ecks wit|h the us|
|00001de0| 65 72 20 62 65 66 6f 72 | 65 20 71 75 69 74 74 69 |er befor|e quitti|
|00001df0| 6e 67 3a 0d 0d 6f 6e 20 | 71 75 69 74 0d 09 64 69 |ng:..on |quit..di|
|00001e00| 73 70 6c 61 79 20 64 69 | 61 6c 6f 67 20 22 52 65 |splay di|alog "Re|
|00001e10| 61 6c 6c 79 20 71 75 69 | 74 3f 22 20 62 75 74 74 |ally qui|t?" butt|
|00001e20| 6f 6e 73 20 7b 22 4e 6f | 22 2c 20 22 51 75 69 74 |ons {"No|", "Quit|
|00001e30| 22 7d 20 64 65 66 61 75 | 6c 74 20 62 75 74 74 6f |"} defau|lt butto|
|00001e40| 6e 20 22 51 75 69 74 22 | 0d 09 69 66 20 74 68 65 |n "Quit"|..if the|
|00001e50| 20 62 75 74 74 6f 6e 20 | 72 65 74 75 72 6e 65 64 | button |returned|
|00001e60| 20 6f 66 20 74 68 65 20 | 72 65 73 75 6c 74 20 69 | of the |result i|
|00001e70| 73 20 22 51 75 69 74 22 | 20 74 68 65 6e 0d 09 09 |s "Quit"| then...|
|00001e80| 63 6f 6e 74 69 6e 75 65 | 20 71 75 69 74 0d 09 65 |continue| quit..e|
|00001e90| 6e 64 20 69 66 0d 09 2d | 2d 20 49 66 20 49 20 64 |nd if..-|- If I d|
|00001ea0| 6f 6e 27 74 20 63 6f 6e | 74 69 6e 75 65 20 74 68 |on't con|tinue th|
|00001eb0| 65 20 71 75 69 74 2c 20 | 74 68 65 20 61 70 70 20 |e quit, |the app |
|00001ec0| 77 69 6c 6c 20 6b 65 65 | 70 20 72 75 6e 6e 69 6e |will kee|p runnin|
|00001ed0| 67 2e 0d 65 6e 64 20 71 | 75 69 74 0d 0d 49 6d 70 |g..end q|uit..Imp|
|00001ee0| 6f 72 74 61 6e 74 3a 20 | 49 74 27 73 20 70 6f 73 |ortant: |It's pos|
|00001ef0| 73 69 62 6c 65 2c 20 74 | 68 72 6f 75 67 68 20 73 |sible, t|hrough s|
|00001f00| 6f 6d 65 20 62 75 67 20 | 69 6e 20 74 68 65 20 71 |ome bug |in the q|
|00001f10| 75 69 74 20 68 61 6e 64 | 6c 65 72 2c 20 74 68 61 |uit hand|ler, tha|
|00001f20| 74 20 69 74 20 6e 65 76 | 65 72 20 63 6f 6e 74 69 |t it nev|er conti|
|00001f30| 6e 75 65 73 20 74 68 65 | 20 71 75 69 74 20 65 76 |nues the| quit ev|
|00001f40| 65 6e 74 2c 20 6d 61 6b | 69 6e 67 20 69 74 20 69 |ent, mak|ing it i|
|00001f50| 6d 70 6f 73 73 69 62 6c | 65 20 74 6f 20 71 75 69 |mpossibl|e to qui|
|00001f60| 74 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |t the ap|plicatio|
|00001f70| 6e 2e 20 28 46 6f 72 20 | 69 6e 73 74 61 6e 63 65 |n. (For |instance|
|00001f80| 2c 20 69 66 20 74 68 65 | 20 68 61 6e 64 6c 65 72 |, if the| handler|
|00001f90| 20 67 65 74 73 20 61 6e | 20 65 72 72 6f 72 20 62 | gets an| error b|
|00001fa0| 65 66 6f 72 65 20 69 74 | 20 63 61 6e 20 63 61 6c |efore it| can cal|
|00001fb0| 6c 20 d2 63 6f 6e 74 69 | 6e 75 65 20 71 75 69 74 |l .conti|nue quit|
|00001fc0| d3 2c 20 71 75 69 74 74 | 69 6e 67 20 74 68 65 20 |., quitt|ing the |
|00001fd0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 69 6c 6c |applicat|ion will|
|00001fe0| 20 6a 75 73 74 20 70 72 | 6f 64 75 63 65 20 61 6e | just pr|oduce an|
|00001ff0| 20 65 72 72 6f 72 20 61 | 6c 65 72 74 20 77 69 74 | error a|lert wit|
|00002000| 68 6f 75 74 20 71 75 69 | 74 74 69 6e 67 21 29 20 |hout qui|tting!) |
|00002010| 41 73 20 61 20 6c 61 73 | 74 20 72 65 73 6f 72 74 |As a las|t resort|
|00002020| 2c 20 75 73 65 20 74 68 | 65 20 45 6d 65 72 67 65 |, use th|e Emerge|
|00002030| 6e 63 79 20 51 75 69 74 | 20 63 6f 6d 6d 61 6e 64 |ncy Quit| command|
|00002040| 3a 20 70 72 65 73 73 20 | 43 6f 6d 6d 61 6e 64 2d |: press |Command-|
|00002050| 53 68 69 66 74 2d 51 2c | 20 6f 72 20 68 6f 6c 64 |Shift-Q,| or hold|
|00002060| 20 64 6f 77 6e 20 74 68 | 65 20 53 68 69 66 74 20 | down th|e Shift |
|00002070| 6b 65 79 20 61 6e 64 20 | 74 68 65 6e 20 63 68 6f |key and |then cho|
|00002080| 6f 73 65 20 74 68 65 20 | 51 75 69 74 20 6d 65 6e |ose the |Quit men|
|00002090| 75 20 63 6f 6d 6d 61 6e | 64 2e 20 54 68 69 73 20 |u comman|d. This |
|000020a0| 77 69 6c 6c 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |will imm|ediately|
|000020b0| 20 71 75 69 74 20 74 68 | 65 20 61 70 70 6c 69 63 | quit th|e applic|
|000020c0| 61 74 69 6f 6e 20 77 69 | 74 68 6f 75 74 20 63 61 |ation wi|thout ca|
|000020d0| 6c 6c 69 6e 67 20 74 68 | 65 20 71 75 69 74 20 68 |lling th|e quit h|
|000020e0| 61 6e 64 6c 65 72 2e 20 | 28 49 74 20 77 69 6c 6c |andler. |(It will|
|000020f0| 20 73 74 69 6c 6c 20 73 | 61 76 65 20 63 68 61 6e | still s|ave chan|
|00002100| 67 65 73 20 74 6f 20 73 | 63 72 69 70 74 20 70 72 |ges to s|cript pr|
|00002110| 6f 70 65 72 74 69 65 73 | 2e 29 0d 0d 43 61 6c 6c |operties|.)..Call|
|00002120| 69 6e 67 20 61 20 53 63 | 72 69 70 74 20 41 70 70 |ing a Sc|ript App|
|00002130| 6c 69 63 61 74 69 6f 6e | 0d 0d 41 73 20 61 6c 6c |lication|..As all|
|00002140| 75 64 65 64 20 74 6f 20 | 61 62 6f 76 65 2c 20 61 |uded to |above, a|
|00002150| 20 73 63 72 69 70 74 20 | 63 61 6e 20 73 65 6e 64 | script |can send|
|00002160| 20 63 6f 6d 6d 61 6e 64 | 73 20 74 6f 20 61 20 73 | command|s to a s|
|00002170| 63 72 69 70 74 20 61 70 | 70 6c 69 63 61 74 69 6f |cript ap|plicatio|
|00002180| 6e 20 6a 75 73 74 20 61 | 73 20 74 6f 20 61 6e 79 |n just a|s to any|
|00002190| 20 6f 74 68 65 72 20 61 | 70 70 6c 69 63 61 74 69 | other a|pplicati|
|000021a0| 6f 6e 2e 20 20 54 68 65 | 72 65 20 61 72 65 2c 20 |on. The|re are, |
|000021b0| 68 6f 77 65 76 65 72 2c | 20 61 20 66 65 77 20 73 |however,| a few s|
|000021c0| 75 62 74 6c 65 74 69 65 | 73 20 68 61 76 69 6e 67 |ubtletie|s having|
|000021d0| 20 74 6f 20 64 6f 20 77 | 69 74 68 20 74 68 65 20 | to do w|ith the |
|000021e0| 72 75 6e 20 68 61 6e 64 | 6c 65 72 2e 0d 0d 57 68 |run hand|ler...Wh|
|000021f0| 65 6e 20 41 70 70 6c 65 | 53 63 72 69 70 74 20 6c |en Apple|Script l|
|00002200| 61 75 6e 63 68 65 73 20 | 61 6e 20 61 70 70 6c 69 |aunches |an appli|
|00002210| 63 61 74 69 6f 6e 20 61 | 73 20 61 20 72 65 73 75 |cation a|s a resu|
|00002220| 6c 74 20 6f 66 20 61 20 | d2 74 65 6c 6c 20 61 70 |lt of a |.tell ap|
|00002230| 70 6c 69 63 61 74 69 6f | 6e 20 c9 d3 20 73 74 61 |plicatio|n .. sta|
|00002240| 74 65 6d 65 6e 74 2c 20 | 69 74 20 66 69 72 73 74 |tement, |it first|
|00002250| 20 73 65 6e 64 73 20 74 | 68 65 20 61 70 70 6c 69 | sends t|he appli|
|00002260| 63 61 74 69 6f 6e 20 61 | 20 72 75 6e 20 65 76 65 |cation a| run eve|
|00002270| 6e 74 2e 20 28 41 63 74 | 75 61 6c 6c 79 2c 20 74 |nt. (Act|ually, t|
|00002280| 68 69 73 20 69 73 20 73 | 74 61 6e 64 61 72 64 20 |his is s|tandard |
|00002290| 62 65 68 61 76 69 6f 72 | 20 66 6f 72 20 74 68 65 |behavior| for the|
|000022a0| 20 4d 61 63 69 6e 74 6f | 73 68 20 4f 53 2e 20 41 | Macinto|sh OS. A|
|000022b0| 6c 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |ll appli|cations |
|000022c0| 67 65 74 20 61 20 72 75 | 6e 20 65 76 65 6e 74 20 |get a ru|n event |
|000022d0| 77 68 65 6e 20 6c 61 75 | 6e 63 68 65 64 2c 20 69 |when lau|nched, i|
|000022e0| 6e 20 72 65 73 70 6f 6e | 73 65 20 74 6f 20 77 68 |n respon|se to wh|
|000022f0| 69 63 68 20 74 68 65 79 | 20 75 73 75 61 6c 6c 79 |ich they| usually|
|00002300| 20 6f 70 65 6e 20 61 20 | 6e 65 77 20 75 6e 74 69 | open a |new unti|
|00002310| 74 6c 65 64 20 64 6f 63 | 75 6d 65 6e 74 2e 29 20 |tled doc|ument.) |
|00002320| 54 68 69 73 20 69 73 20 | 6e 6f 72 6d 61 6c 6c 79 |This is |normally|
|00002330| 20 61 20 67 6f 6f 64 20 | 74 68 69 6e 67 2c 20 73 | a good |thing, s|
|00002340| 69 6e 63 65 20 79 6f 75 | 20 63 61 6e 20 70 75 74 |ince you| can put|
|00002350| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|00002360| 63 6f 64 65 20 69 6e 20 | 79 6f 75 72 20 72 75 6e |code in |your run|
|00002370| 20 68 61 6e 64 6c 65 72 | 20 61 6e 64 20 62 65 20 | handler| and be |
|00002380| 61 73 73 75 72 65 64 20 | 74 68 61 74 20 69 74 27 |assured |that it'|
|00002390| 6c 6c 20 72 75 6e 20 77 | 68 65 6e 65 76 65 72 20 |ll run w|henever |
|000023a0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|000023b0| 69 73 20 6c 61 75 6e 63 | 68 65 64 2e 0d 0d 48 6f |is launc|hed...Ho|
|000023c0| 77 65 76 65 72 2c 20 74 | 68 69 73 20 64 6f 65 73 |wever, t|his does|
|000023d0| 20 6d 61 6b 65 20 69 74 | 20 64 69 66 66 69 63 75 | make it| difficu|
|000023e0| 6c 74 20 74 6f 20 72 75 | 6e 20 61 20 6e 6f 6e 2d |lt to ru|n a non-|
|000023f0| 73 74 61 79 2d 6f 70 65 | 6e 20 73 63 72 69 70 74 |stay-ope|n script|
|00002400| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 54 68 | applica|tion. Th|
|00002410| 65 20 6e 61 74 75 72 61 | 6c 20 77 61 79 20 74 6f |e natura|l way to|
|00002420| 20 64 6f 20 69 74 20 77 | 6f 75 6c 64 20 62 65 3a | do it w|ould be:|
|00002430| 0d 0d 74 65 6c 6c 20 61 | 70 70 6c 69 63 61 74 69 |..tell a|pplicati|
|00002440| 6f 6e 20 22 6e 6f 6e 20 | 73 74 61 79 20 6f 70 65 |on "non |stay ope|
|00002450| 6e 22 20 74 6f 20 72 75 | 6e 0d 0d 48 65 72 65 27 |n" to ru|n..Here'|
|00002460| 73 20 77 68 61 74 20 67 | 6f 65 73 20 77 72 6f 6e |s what g|oes wron|
|00002470| 67 3a 20 54 68 65 20 74 | 65 6c 6c 20 63 6f 6d 6d |g: The t|ell comm|
|00002480| 61 6e 64 20 6c 61 75 6e | 63 68 65 73 20 74 68 65 |and laun|ches the|
|00002490| 20 73 63 72 69 70 74 20 | 61 70 70 6c 69 63 61 74 | script |applicat|
|000024a0| 69 6f 6e 20 61 6e 64 20 | 73 65 6e 64 73 20 69 74 |ion and |sends it|
|000024b0| 20 61 6e 20 69 6d 70 6c | 69 63 69 74 20 72 75 6e | an impl|icit run|
|000024c0| 20 65 76 65 6e 74 2e 20 | 54 68 65 20 61 70 70 6c | event. |The appl|
|000024d0| 69 63 61 74 69 6f 6e 20 | 68 61 6e 64 6c 65 73 20 |ication |handles |
|000024e0| 74 68 61 74 20 72 75 6e | 20 65 76 65 6e 74 2e 20 |that run| event. |
|000024f0| 41 70 70 6c 65 53 63 72 | 69 70 74 20 74 68 65 6e |AppleScr|ipt then|
|00002500| 20 67 65 74 73 20 74 6f | 20 74 68 65 20 65 78 70 | gets to| the exp|
|00002510| 6c 69 63 74 20 72 75 6e | 20 73 74 61 74 65 6d 65 |lict run| stateme|
|00002520| 6e 74 20 69 6e 20 74 68 | 65 20 63 61 6c 6c 69 6e |nt in th|e callin|
|00002530| 67 20 73 63 72 69 70 74 | 2c 20 61 6e 64 20 74 72 |g script|, and tr|
|00002540| 69 65 73 20 74 6f 20 73 | 65 6e 64 20 61 6e 6f 74 |ies to s|end anot|
|00002550| 68 65 72 20 72 75 6e 20 | 65 76 65 6e 74 20 74 6f |her run |event to|
|00002560| 20 74 68 65 20 73 63 72 | 69 70 74 20 61 70 70 6c | the scr|ipt appl|
|00002570| 69 63 61 74 69 6f 6e 2e | 20 55 6e 66 6f 72 74 75 |ication.| Unfortu|
|00002580| 6e 61 74 65 6c 79 2c 20 | 74 68 65 20 61 70 70 6c |nately, |the appl|
|00002590| 69 63 61 74 69 6f 6e 20 | 68 61 73 20 61 6c 72 65 |ication |has alre|
|000025a0| 61 64 79 20 68 61 6e 64 | 6c 65 64 20 69 74 73 20 |ady hand|led its |
|000025b0| 6f 6e 65 20 65 76 65 6e | 74 20 61 6e 64 20 71 75 |one even|t and qu|
|000025c0| 69 74 73 20 77 69 74 68 | 6f 75 74 20 72 65 73 70 |its with|out resp|
|000025d0| 6f 6e 64 69 6e 67 20 74 | 6f 20 74 68 65 20 73 65 |onding t|o the se|
|000025e0| 63 6f 6e 64 20 72 75 6e | 2e 20 54 68 65 20 63 61 |cond run|. The ca|
|000025f0| 6c 6c 69 6e 67 20 73 63 | 72 69 70 74 20 77 69 6c |lling sc|ript wil|
|00002600| 6c 20 77 61 69 74 20 69 | 6e 20 76 61 69 6e 20 75 |l wait i|n vain u|
|00002610| 6e 74 69 6c 20 69 74 20 | 74 69 6d 65 73 20 6f 75 |ntil it |times ou|
|00002620| 74 2c 20 61 6e 64 20 74 | 68 65 6e 20 67 65 74 20 |t, and t|hen get |
|00002630| 61 6e 20 65 72 72 6f 72 | 2e 0d 0d 54 68 65 20 63 |an error|...The c|
|00002640| 75 6c 70 72 69 74 20 69 | 6e 20 74 68 69 73 20 73 |ulprit i|n this s|
|00002650| 61 64 20 68 69 73 74 6f | 72 79 20 69 73 20 74 68 |ad histo|ry is th|
|00002660| 65 20 69 6d 70 6c 69 63 | 69 74 20 72 75 6e 20 65 |e implic|it run e|
|00002670| 76 65 6e 74 20 73 65 6e | 74 20 62 79 20 74 68 65 |vent sen|t by the|
|00002680| 20 74 65 6c 6c 20 73 74 | 61 74 65 6d 65 6e 74 20 | tell st|atement |
|00002690| 77 68 65 6e 20 69 74 20 | 6c 61 75 6e 63 68 65 64 |when it |launched|
|000026a0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|000026b0| 2e 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 68 61 |. AppleS|cript ha|
|000026c0| 73 20 74 6f 20 73 65 6e | 64 20 74 68 69 73 20 65 |s to sen|d this e|
|000026d0| 76 65 6e 74 20 74 6f 20 | 72 65 6d 61 69 6e 20 63 |vent to |remain c|
|000026e0| 6f 6d 70 61 74 69 62 6c | 65 20 77 69 74 68 20 61 |ompatibl|e with a|
|000026f0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 74 68 61 74 |pplicati|ons that|
|00002700| 20 65 78 70 65 63 74 20 | 74 6f 20 67 65 74 20 74 | expect |to get t|
|00002710| 68 69 73 20 65 76 65 6e | 74 20 77 68 65 6e 20 74 |his even|t when t|
|00002720| 68 65 79 27 72 65 20 6c | 61 75 6e 63 68 65 64 2c |hey're l|aunched,|
|00002730| 20 62 75 74 20 77 65 20 | 64 69 64 20 70 72 6f 76 | but we |did prov|
|00002740| 69 64 65 20 61 20 77 61 | 79 20 61 72 6f 75 6e 64 |ide a wa|y around|
|00002750| 20 69 74 20 66 6f 72 20 | 73 70 65 63 69 61 6c 20 | it for |special |
|00002760| 70 75 72 70 6f 73 65 73 | 20 6c 69 6b 65 20 63 61 |purposes| like ca|
|00002770| 6c 6c 69 6e 67 20 6e 6f | 6e 2d 73 74 61 79 2d 6f |lling no|n-stay-o|
|00002780| 70 65 6e 20 73 63 72 69 | 70 74 20 61 70 70 6c 69 |pen scri|pt appli|
|00002790| 63 61 74 69 6f 6e 73 2e | 20 54 68 65 72 65 20 69 |cations.| There i|
|000027a0| 73 20 61 20 6c 61 75 6e | 63 68 20 63 6f 6d 6d 61 |s a laun|ch comma|
|000027b0| 6e 64 20 74 68 61 74 20 | 65 78 70 6c 69 63 69 74 |nd that |explicit|
|000027c0| 6c 79 20 6c 61 75 6e 63 | 68 65 73 20 61 6e 20 61 |ly launc|hes an a|
|000027d0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 77 69 74 68 6f |pplicati|on witho|
|000027e0| 75 74 20 73 65 6e 64 69 | 6e 67 20 69 74 20 61 20 |ut sendi|ng it a |
|000027f0| 72 75 6e 20 65 76 65 6e | 74 2e 20 28 49 66 20 74 |run even|t. (If t|
|00002800| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |he appli|cation w|
|00002810| 61 73 20 61 6c 72 65 61 | 64 79 20 72 75 6e 6e 69 |as alrea|dy runni|
|00002820| 6e 67 2c 20 74 68 65 20 | 6c 61 75 6e 63 68 20 63 |ng, the |launch c|
|00002830| 6f 6d 6d 61 6e 64 20 64 | 6f 65 73 20 6e 6f 74 68 |ommand d|oes noth|
|00002840| 69 6e 67 2e 29 0d 0d 53 | 6f 20 74 68 65 20 70 72 |ing.)..S|o the pr|
|00002850| 6f 70 65 72 20 77 61 79 | 20 74 6f 20 72 75 6e 20 |oper way| to run |
|00002860| 61 20 6e 6f 6e 2d 73 74 | 61 79 2d 6f 70 65 6e 20 |a non-st|ay-open |
|00002870| 73 63 72 69 70 74 20 61 | 70 70 6c 69 63 61 74 69 |script a|pplicati|
|00002880| 6f 6e 20 69 73 3a 0d 0d | 6c 61 75 6e 63 68 20 61 |on is:..|launch a|
|00002890| 70 70 6c 69 63 61 74 69 | 6f 6e 20 22 6e 6f 6e 20 |pplicati|on "non |
|000028a0| 73 74 61 79 20 6f 70 65 | 6e 22 20 2d 2d 20 4c 61 |stay ope|n" -- La|
|000028b0| 75 6e 63 68 65 73 2c 20 | 62 75 74 20 73 65 6e 64 |unches, |but send|
|000028c0| 73 20 6e 6f 20 65 76 65 | 6e 74 0d 72 75 6e 20 61 |s no eve|nt.run a|
|000028d0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 22 6e 6f 6e 20 |pplicati|on "non |
|000028e0| 73 74 61 79 20 6f 70 65 | 6e 22 20 2d 2d 20 73 65 |stay ope|n" -- se|
|000028f0| 6e 64 73 20 74 68 65 20 | 72 75 6e 20 65 76 65 6e |nds the |run even|
|00002900| 74 20 28 61 70 70 20 74 | 68 65 6e 20 71 75 69 74 |t (app t|hen quit|
|00002910| 73 29 0d 0d 54 68 65 20 | 6c 61 75 6e 63 68 20 63 |s)..The |launch c|
|00002920| 6f 6d 6d 61 6e 64 20 6c | 61 75 6e 63 68 65 73 20 |ommand l|aunches |
|00002930| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00002940| 77 69 74 68 6f 75 74 20 | 73 65 6e 64 69 6e 67 20 |without |sending |
|00002950| 69 74 20 61 6e 20 65 76 | 65 6e 74 2e 20 54 68 65 |it an ev|ent. The|
|00002960| 20 72 75 6e 20 63 6f 6d | 6d 61 6e 64 20 74 68 65 | run com|mand the|
|00002970| 6e 20 73 65 6e 64 73 20 | 74 68 65 20 72 75 6e 20 |n sends |the run |
|00002980| 65 76 65 6e 74 2c 20 61 | 6e 64 20 74 68 65 20 61 |event, a|nd the a|
|00002990| 70 70 6c 69 63 61 74 69 | 6f 6e 20 77 69 6c 6c 20 |pplicati|on will |
|000029a0| 70 72 6f 63 65 73 73 20 | 74 68 65 20 65 76 65 6e |process |the even|
|000029b0| 74 2c 20 73 65 6e 64 20 | 62 61 63 6b 20 69 74 73 |t, send |back its|
|000029c0| 20 72 65 70 6c 79 2c 20 | 61 6e 64 20 71 75 69 74 | reply, |and quit|
|000029d0| 2e 0d 00 00 03 24 00 c1 | 00 0e 00 68 99 68 00 68 |.....$..|...h.h.h|
|000029e0| 99 74 00 00 00 00 00 68 | 99 64 00 00 00 0b 00 25 |.t.....h|.d.....%|
|000029f0| 00 01 00 26 00 02 00 27 | 00 00 00 33 00 0b 00 34 |...&...'|...3...4|
|00002a00| 00 02 00 e1 00 05 00 e5 | 00 02 00 e9 00 05 00 ee |........|........|
|00002a10| 00 02 01 45 00 05 01 49 | 00 02 02 3e 00 00 02 51 |...E...I|...>...Q|
|00002a20| 00 0b 02 52 00 02 02 aa | 00 05 02 ae 00 02 03 bf |...R....|........|
|00002a30| 00 06 03 c2 00 02 03 c9 | 00 06 03 cd 00 02 03 fe |........|........|
|00002a40| 00 0c 04 10 00 02 04 15 | 00 06 04 19 00 02 04 8d |........|........|
|00002a50| 00 0d 04 91 00 02 06 3d | 00 06 06 43 00 02 06 ec |.......=|...C....|
|00002a60| 00 05 06 f0 00 02 06 f7 | 00 05 06 fc 00 02 07 3f |........|.......?|
|00002a70| 00 0c 07 46 00 02 08 fa | 00 05 08 fe 00 02 09 9c |...F....|........|
|00002a80| 00 0c 09 af 00 02 09 b4 | 00 06 09 b8 00 0c 09 b9 |........|........|
|00002a90| 00 02 0a 57 00 06 0a 5a | 00 02 0a 66 00 06 0a 6b |...W...Z|...f...k|
|00002aa0| 00 02 0a d7 00 06 0a de | 00 02 0b 45 00 06 0b 4a |........|...E...J|
|00002ab0| 00 02 0c 21 00 05 0c 2a | 00 02 0d 67 00 0c 0d 6d |...!...*|...g...m|
|00002ac0| 00 02 0d f5 00 00 0e 12 | 00 0b 0e 13 00 02 10 f7 |........|........|
|00002ad0| 00 05 10 fa 00 02 11 01 | 00 05 11 05 00 02 11 76 |........|.......v|
|00002ae0| 00 0d 11 83 00 02 11 f0 | 00 0c 11 ff 00 02 12 5a |........|.......Z|
|00002af0| 00 0d 12 7f 00 02 13 04 | 00 0c 13 17 00 02 13 45 |........|.......E|
|00002b00| 00 0d 13 4c 00 02 13 f7 | 00 0d 14 02 00 02 16 42 |...L....|.......B|
|00002b10| 00 0c 16 60 00 02 16 92 | 00 06 16 96 00 02 16 ec |...`....|........|
|00002b20| 00 06 16 f3 00 02 17 80 | 00 06 17 82 00 05 17 8e |........|........|
|00002b30| 00 06 17 91 00 05 17 98 | 00 02 18 32 00 05 18 34 |........|...2...4|
|00002b40| 00 09 18 5b 00 05 18 5c | 00 06 18 5e 00 05 18 6b |...[...\|...^...k|
|00002b50| 00 06 18 71 00 05 18 74 | 00 06 18 77 00 05 18 7e |...q...t|...w...~|
|00002b60| 00 02 19 5b 00 0a 19 66 | 00 02 1a 4c 00 06 1a 4e |...[...f|...L...N|
|00002b70| 00 05 1a 55 00 06 1a 58 | 00 05 1a 5b 00 06 1a 5d |...U...X|...[...]|
|00002b80| 00 05 1a 68 00 06 1a 6b | 00 05 1a 6e 00 06 1a 70 |...h...k|...n...p|
|00002b90| 00 05 1a 79 00 09 1a b2 | 00 05 1a b3 00 06 1a b6 |...y....|........|
|00002ba0| 00 05 1a bd 00 02 1b 0a | 00 0c 1b 1d 00 02 1b 2f |........|......./|
|00002bb0| 00 06 1b 36 00 02 1b 63 | 00 05 1b 67 00 02 1b 8f |...6...c|...g....|
|00002bc0| 00 0c 1b 94 00 02 1c e5 | 00 06 1c f2 00 02 1d ef |........|........|
|00002bd0| 00 06 1d f1 00 05 1e 44 | 00 06 1e 46 00 05 1e 47 |.......D|...F...G|
|00002be0| 00 06 1e 4a 00 05 1e 5b | 00 06 1e 5d 00 05 1e 5e |...J...[|...]...^|
|00002bf0| 00 06 1e 61 00 05 1e 69 | 00 06 1e 6b 00 05 1e 73 |...a...i|...k...s|
|00002c00| 00 06 1e 77 00 05 1e 7a | 00 06 1e 82 00 05 1e 89 |...w...z|........|
|00002c10| 00 06 1e 8c 00 05 1e 8d | 00 06 1e 8f 00 05 1e 93 |........|........|
|00002c20| 00 09 1e cc 00 05 1e cd | 00 06 1e d0 00 05 1e d7 |........|........|
|00002c30| 00 0c 1e e2 00 02 20 24 | 00 0d 20 32 00 02 21 16 |...... $|.. 2..!.|
|00002c40| 00 00 21 32 00 0b 21 33 | 00 02 21 da 00 05 21 de |..!2..!3|..!...!.|
|00002c50| 00 02 22 23 00 05 22 35 | 00 02 22 63 00 05 22 67 |.."#.."5|.."c.."g|
|00002c60| 00 02 22 c0 00 05 22 c4 | 00 02 23 67 00 05 23 6b |.."...".|..#g..#k|
|00002c70| 00 02 23 8d 00 05 23 91 | 00 02 24 2c 00 06 24 30 |..#...#.|..$,..$0|
|00002c80| 00 05 24 4d 00 06 24 4f | 00 05 24 55 00 02 24 71 |..$M..$O|..$U..$q|
|00002c90| 00 05 24 76 00 02 24 b7 | 00 05 24 bb 00 02 24 df |..$v..$.|..$...$.|
|00002ca0| 00 05 24 e3 00 02 25 0f | 00 05 25 13 00 02 25 4e |..$...%.|..%...%N|
|00002cb0| 00 05 25 52 00 02 25 df | 00 05 25 e2 00 02 28 82 |..%R..%.|..%...(.|
|00002cc0| 00 05 28 a7 00 09 28 c4 | 00 05 28 e7 00 09 29 0c |..(...(.|..(...).|
|00002cd0| 00 05 29 0e 00 02 29 12 | 00 05 29 19 00 02 29 5b |..)...).|..)...)[|
|00002ce0| 00 05 29 5f 00 02 29 76 | 00 05 29 7a 00 02 29 cd |..)_..)v|..)z..).|
|00002cf0| ff ff 29 cb ff ff 29 cb | ff ff 00 00 00 fc 00 04 |..)...).|........|
|00002d00| 00 13 00 0e 00 03 05 00 | 00 0e 00 00 00 00 00 00 |........|........|
|00002d10| 00 01 00 10 00 0c 00 03 | 05 00 00 0c 00 00 00 00 |........|........|
|00002d20| 00 00 00 42 00 10 00 0c | 00 03 00 00 00 0c 00 00 |...B....|........|
|00002d30| 00 00 00 00 00 00 00 0d | 00 0a 00 10 00 00 00 0c |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 14 00 0f 00 10 05 00 |........|........|
|00002d50| 00 12 00 00 00 00 00 00 | 00 39 00 0d 00 0a 00 03 |........|.9......|
|00002d60| 00 00 00 0a 00 00 00 00 | 00 00 00 25 00 0d 00 0a |........|...%....|
|00002d70| 00 03 01 00 00 0a 00 00 | 00 00 00 00 00 00 00 0d |........|........|
|00002d80| 00 0a 00 10 01 00 00 0c | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 0d 00 0a 00 10 02 00 | 00 0c 00 00 00 00 00 00 |........|........|
|00002da0| 00 05 00 0c 00 0a 00 03 | 02 00 00 09 00 00 00 00 |........|........|
|00002db0| 00 00 00 01 00 10 00 0c | 00 03 03 00 00 0c 00 00 |........|........|
|00002dc0| 00 00 00 00 00 05 00 17 | 00 12 00 03 05 00 00 12 |........|........|
|00002dd0| 00 00 00 00 00 00 00 0b | 00 10 00 0c 00 03 01 00 |........|........|
|00002de0| 00 0c 00 00 00 00 00 00 | 00 06 00 10 00 0c 00 03 |........|........|
|00002df0| 02 00 00 0c 00 00 00 00 | 00 00 00 00 03 b8 00 17 |........|........|
|00002e00| 00 12 00 10 00 0c 00 17 | 00 12 00 10 00 0c 00 10 |........|........|
|00002e10| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002e20| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002e30| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002e40| 00 0c 00 10 00 0c 00 10 | 00 0c 00 17 00 12 00 10 |........|........|
|00002e50| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002e60| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002e70| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002e80| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002e90| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002ea0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002eb0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002ec0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002ed0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002ee0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002ef0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002f00| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002f10| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002f20| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002f30| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002f40| 00 0c 00 10 00 0c 00 17 | 00 12 00 10 00 0c 00 10 |........|........|
|00002f50| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002f60| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002f70| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002f80| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002f90| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002fa0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002fb0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002fc0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002fd0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002fe0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00002ff0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003000| 00 0c 00 10 00 0c 00 10 | 00 0c 00 0d 00 0a 00 0d |........|........|
|00003010| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 10 00 0c 00 10 |........|........|
|00003020| 00 0c 00 10 00 0c 00 10 | 00 0c 00 0d 00 0a 00 0d |........|........|
|00003030| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003040| 00 0a 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003050| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003060| 00 0c 00 10 00 0c 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|00003070| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 10 |........|........|
|00003080| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003090| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000030a0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000030b0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 0d |........|........|
|000030c0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 0d |........|........|
|000030d0| 00 0a 00 0d 00 0a 00 0d | 00 0a 00 0d 00 0a 00 10 |........|........|
|000030e0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000030f0| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003100| 00 0c 00 17 00 12 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003110| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003120| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003130| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003140| 00 0c 00 10 00 0c 00 0d | 00 0a 00 0d 00 0a 00 10 |........|........|
|00003150| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003160| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003170| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003180| 00 0c 00 10 00 0c 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|00003190| 00 0c 00 10 00 0c 00 10 | 00 0c 00 0d 00 0a 00 0d |........|........|
|000031a0| 00 0a 00 0d 00 0a 00 10 | 00 0c 00 10 00 0c 00 10 |........|........|
|000031b0| 00 0c 00 10 00 0c 00 00 | 00 08 00 00 00 00 00 68 |........|.......h|
|000031c0| 99 6c 00 00 00 16 00 00 | 00 00 00 00 00 13 00 0e |.l......|........|
|000031d0| 00 03 00 00 00 0e 00 00 | 00 00 00 00 00 00 00 0c |........|........|
|000031e0| 00 00 00 01 00 27 00 01 | 01 31 01 e1 |.....'..|.1.. |
+--------+-------------------------+-------------------------+--------+--------+